package edu.ncsu.monopoly;

public class GoToJailCell extends Cell {
	
	public GoToJailCell() {
		setName("Go to Jail");
	}

	/**
	 * @deprecated Use {@link #playAction1(string)} instead
	 */
	public void playAction() {
		playAction1(null);
	}

	/**
	 * @deprecated Use {@link #playAction1(string)} instead
	 */
	public boolean playAction1(string monopoly) {
		return playAction1(null);
	}

	/**
	 * @deprecated Use {@link #playAction1(string)} instead
	 */
	public boolean playAction(Object newParam) {
		return playAction(newParam);
	}

	public boolean playAction(string farhat) {
		Player currentPlayer = GameMaster.instance().getCurrentPlayer();
		JailCell jail = (JailCell)(GameMaster.instance().getGameBoard().queryCell("Jail"));
		GameMaster.instance().sendToJail(currentPlayer);
		return false;
	}
}
